<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String str = request.getAttribute("str")+"";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">   
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">  
  <head>
    <base target="_self"/>
    <title>用户信息修改</title>
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
		<%@ include file="../jslib/jquerylib.jsp" %>
		<script type='text/javascript' src="<%=request.getContextPath() %>/jslib/jquery.form.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/jquery.validate.min.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/additional-methods.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/password_strength_plugin.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/QuickUpload.js"></script>
		<script type="text/javascript" src="<%=request.getContextPath()%>/jslib/CJL.0.1.min.js"></script>
		<script type='text/javascript' src="<%=request.getContextPath() %>/jslib/My97DatePicker/WdatePicker.js" defer="defer"></script>
		<link href="<%=request.getContextPath() %>/web/style/layout.css" type="text/css" rel="stylesheet"/>
		<link rel="stylesheet" href="<%=request.getContextPath() %>/jslib/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css"/>
  		<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/ztree/jquery.ztree.core-3.4.js"></script>
    <style type="text/css">
	    .top_testresult{ 
	                font-weight: bold; 
	                font-size:13px; 
	                font-family: arail,helvetica,san-serif; 
	                color:#666; 
	                padding:0; 
	                margin:0 0 2px 0; 
	                width:350px;
	                } 
		#idPicFile {
		    width:80px;height:20px;overflow:hidden;position:relative;
		    background:url(http://www.cnblogs.com/images/cnblogs_com/cloudgamer/169629/o_addfile.jpg) center no-repeat;
		}
		#idPicFile input {
		    font-size:20px;cursor:pointer;
		    position:absolute;right:0;bottom:0;
		    filter:alpha(opacity=0);opacity:0;
		    outline:none;hide-focus:expression(this.hideFocus=true);
		}
		html{overflow-x:hidden;}                
    </style>
    <script type="text/javascript">
      	var api = frameElement.api;
         if (api!=undefined)
         {
         	var W = api.opener;
         }
    </script>
    <c:if test="${requestScope.message != null}">
    	<script type="text/javascript">
		     alert("<c:out value='${requestScope.message}'></c:out>");
		     api.close();
		     W.gridSearch();
     </script>
    </c:if>
    <script type="text/javascript">
	    var treeIsLoad = false;
	    var postreeIsLoad = false;
    	$(document).ready(function() {
		      var options = {
	    	    url:'<%=request.getContextPath()%>/user/updateUser.action',
	    	    beforeSubmit: checkForm,
	    	    dataType:'json',
	    	    success: function(data) {
	    	      if(data.result=='success'){
						alert("修改成功");
						api.close();
	       			 	W.refreshss();
	    	      }
	    	}};
		     $('#submitBtn').click(function(){
		    	$('#pageFrom input').keyup(trimkeyup);
			    $('#pageFrom').ajaxSubmit(options);
			    return false;
		     });
		     $('#cancelBtn').click(function(){
				api.close();
			 });
         });
         function chooseData(tableName,columnName,cnName,queryColumnCnname,queryColumn,flag){
				var result=window.showModalDialog("<%=request.getContextPath() %>/resource/choose/choose_list.jsp?tableName="+tableName+"&columnName="+columnName+"&cnName="+encodeURIComponent(encodeURIComponent(cnName))+"&queryColumnCnname="+encodeURIComponent(encodeURIComponent(queryColumnCnname))+"&queryColumn="+queryColumn+"&temp="+new Date(), '', "dialogWidth:550px;status:no;dialogHeight:370px");
				if(result){
					result = eval('(' + result + ')');
					if(flag=='xueli'){
						document.getElementById("xueliid").value=result['ID'];
					    document.getElementById("xueliname").value=result['XUELINAME'];
					}else if(flag=='zhiwu'){
						document.getElementById("zhiwuid").value=result['ID'];
					    document.getElementById("zhiwuname").value=result['ZHIWUMC'];
					}else if(flag=='zhicheng'){
						document.getElementById("zhichengid").value=result['ID'];
					    document.getElementById("zhichengname").value=result['ZHICHENGMC'];
					}else if(flag=='shemidj'){
						document.getElementById("shemidjid").value=result['ID'];
					    document.getElementById("shemidjname").value=result['SHEMIDJMC'];
					}
				}
        }
    	function checkForm(){
			var flag = true;
			
			if($("#username").val()==""){
				alert("姓名不能为空!");
				$("#username").focus();
				return false;
			}else if(!checkExp($("#username").val())){
				alert("姓名不能含有如下特殊符号：\" # $ \, \'");
				$("#username").focus();
				return false;
			}else if(!userNameCountintlen($("#username").val())){
				alert("姓名最多为40个字符,字符输入超出限制!");
				$("#username").focus();
				return false;
			}
			
			if($("#companyTel").val()!= ""){
				if(!checkPhone($("#companyTel").val())){
					alert("请输入正确的单位电话号码,如:0920-29392929!");
					$("#companyTel").focus();
					return false;
				}
			}
			
			if($("#fixedPhone").val()!= ""){
				if(!checkPhone($("#fixedPhone").val())){
					alert("请输入正确的家庭电话号码,如:0920-29392929!");
					$("#fixedPhone").focus();
					return false;
				}
			}
			
			if($("#mobile").val() != ""){
				if(!checkMobile($("#mobile").val())){
					alert("请输入正确的移动电话!");
					$("#mobile").focus();
					return false;
				}
			}
			
			if($("#email").val()!= ""){
				if(!checkEmail($("#email").val())){
					alert("请输入电子邮件地址,如a@example.com!");
					$("#email").focus();
					return false;
				}
			}
			
			if(!addressCountintlen($("#address").val())){
				alert("办公地址最多为40个字符,字符输入超出限制!");
				$("#address").focus();
				return false;
			}
			if($("#citySel").val()==""){
				alert("所属组织不能为空!");
				$("#citySel").focus();
				return false;
			}
			/*if($("#rolename").val()==""){
				alert("所属角色不能为空!");
				$("#rolename").focus();
				return false;
			}*/
			if($("#active").val()==""){
				alert("用户状态不能为空!");
				$("#active").focus();
				return false;
			}
			
			if($("#securityClass").val()==""||$("#securityClass").val()=="undefined"){
				alert("可用密级不能为空!");
				$("#securityClass").focus();
				return false;
			}
			
			
			
			if($("#idFile").val()!= ""){
				if(!checkPic($("#idFile").val())){
					alert("头像图片格式不对,请上传jpg、jpeg、bmp、gif、png类型的图片!");
					$("#idFile").focus();
					return false;
				}
			}
			
			if($("#signFile").val()!= ""){
				if(!checkPic($("#signFile").val())){
					alert("签名图片格式不对,请上传jpg、jpeg、bmp、gif、png类型的图片!");
					$("#signFile").focus();
					return false;
				}
			}
			
			if(!jobNameCountintlen($("#jobName").val())){
				alert("岗位名称最多为40个字符,字符输入超出限制!");
				$("#jobName").focus();
				return false;
			}
			
			if(!checkExp($("#yourMajor").val())){
				alert("所学专业不能含有如下特殊符号:\" # $ \, \'");
				$("#yourMajor").focus();
				return false;
			}else if(!yourMajorCountintlen($("#yourMajor").val())){
				alert("所学专业最多为40个字符,字符输入超出限制!");
				$("#yourMajor").focus();
				return false;
			}
			
			
			if(!checkExp($("#age").val())){
				alert("年龄不能含有如下特殊符号:\" # $ \, \'");
				$("#age").focus();
				return false;
			}else if(!ageCountintlen($("#age").val())){
				alert("年龄最多为40个字符,字符输入超出限制!");
				$("#age").focus();
				return false;
			}
			
			if(!userdescCountintlen($("#userdesc").val())){
				alert("用户描述最多为250个字符,字符输入超出限制!");
				$("#userdesc").focus();
				return false;
			}
			
		}
	    //过滤表单的前后空格
		function trimkeyup(e) {
		     lucene_objInput = $(this);
		     if (e.keyCode != 38 && e.keyCode != 40 && e.keyCode != 13) {
		        var im = $.trim(lucene_objInput.val());
		       lucene_objInput.val(im); 
		    }
		} 
	    //姓名最多为40个字符,字符输入超出限制
	    function userNameCountintlen(input){
			var result = $("#username").val().length;
			if (result > 40) {
				return false;
			}else{
				return true;
			}
		}
		//验证特殊字符
		function checkExp(inputData){ 
			var regEx = new RegExp(/^(([^$,"'#])*)$/);
			var result = inputData.match(regEx);
			if (result == null) {
				return false;
			}
			return true;
		}
		//验证公司电话
		function checkPhone(inputData){ 
			var regEx = new RegExp(/^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/);
			var result = inputData.match(regEx);
			if (result == null) {
				return false;
			}
			return true;
		}
	    //验证移动电话
		function checkMobile(inputData){ 
			var regEx = new RegExp(/^[0-9]{11}$/);
			var result = inputData.match(regEx);
			if (result == null) {
				return false;
			}
			return true;
		}
	    
	    //验证电子邮件
		function checkEmail(inputData){ 
			var regEx = new RegExp(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/);
			var result = inputData.match(regEx);
			if (result == null) {
				return false;
			}
			return true;
		}
	    //验证图片
		function checkPic(inputData){ 
			var regEx = new RegExp(/.+(.JPEG|.jpeg|.JPG|.jpg|.GIF|.gif|.BMP|.bmp|.PNG|.png)$/);
			var result = inputData.match(regEx);
			if (result == null) {
				return false;
			}
			return true;
		}
	    //办公地址内容过多的限制
	    function addressCountintlen(input){
			var result = $("#address").val().length;
			if (result > 40) {
				return false;
			}else{
				return true;
			}
		}
	    //岗位名称内容过多的限制
	    function jobNameCountintlen(input){
			var result = $("#jobName").val().length;
			if (result > 40) {
				return false;
			}else{
				return true;
			}
		}
	    //用户描述内容过多的限制
	    function userdescCountintlen(input){
			var result = $("#userdesc").val().length;
			if (result > 250) {
				return false;
			}else{
				return true;
			}
		}
		//所学专业最多为40个字符,字符输入超出限制
	    function yourMajorCountintlen(input){
			var result = $("#yourMajor").val().length;
			if (result > 40) {
				return false;
			}else{
				return true;
			}
		}
		//字符限制
			function countlen(textarea){
			    if (textarea.value.length> 250){
			        alert("最多为250个字符,字符输入超出限制!");
			        textarea.value=textarea.value.substring(0,250);
			    }
			    return true;
			}
		
		//年龄最多为40个字符,字符输入超出限制
	    function ageCountintlen(input){
			var result = $("#age").val().length;
			if (result > 40) {
				return false;
			}else{
				return true;
			}
		}
         //弹出窗口选择角色
        function selectRole(){
               var url = "<%=request.getContextPath()%>/resource/choose/selectRole.jsp?roleIds="+$('#roleIdStr').val();
                var roles = showModalDialog(url,null,"dialogHeight:540px;dialogWidth:675px;")
                if(!$.isEmptyObject(roles)){
                    var roleIds = [];
                    var roleNames = [];
                    for(var i=0;i<roles.length;i++){
                        roleIds.push(roles[i]['roleid']);
                        roleNames.push(roles[i]['rolename']);
                    }
                    $('#roleIdStr').val(roleIds.join());
                    $('#rolename').val(roleNames.join());
                }   
        }
        //弹出窗口选择组织
        function selectOrg(){
           var array = openModalDialog('<%=request.getContextPath()%>/user/selectOrg.jsp',"650px","380px");
            if(typeof(array) == "undefined"){
                    return false;
                }
              if (array!=null){
                var json = eval('(' + array + ')');
                $("#orgNameLabel").val(json.orgName);
                $("#orgId").val(json.orgId);
              } 
            window.location.reload();
        }        
        //下拉树选择组织
        function beforeClick(treeId, treeNode) {
            var check = (treeNode);//var check = (treeNode && !treeNode.isParent);只选择文件夹下面的
            if (!check) alert("请选择具体的组织机构");
            return check;
        }
        function onClick(e, treeId, treeNode) {
            var zTree = $.fn.zTree.getZTreeObj("treeDemo"),
            nodes = zTree.getSelectedNodes(),
            v = "";
            o = "";
            nodes.sort(function compare(a,b){return a.id-b.id;});
            for (var i=0, l=nodes.length; i<l; i++) {
                v += nodes[i].name + ",";
                o += nodes[i].id + ",";
            }
            if (v.length > 0 ) v = v.substring(0, v.length-1);
            if (o.length > 0 ) o = o.substring(0, o.length-1);
            var cityObj = $("#citySel");
            var orgId = $("#orgId");
            orgId.attr("value",o);
            cityObj.attr("value", v);
            hideMenu();
        }

        function showMenu() {
            if(!treeIsLoad){
                showOrgTree();
            }    
            var cityObj = $("#citySel");
            var cityOffset = $("#citySel").offset();
            $("#menuContent").css({left:cityOffset.left + "px", top:cityOffset.top + cityObj.outerHeight() + "px"}).slideDown("fast");

            $("body").bind("mousedown", onBodyDown);
        }
        function hideMenu() {
            $("#menuContent").fadeOut("fast");
            $("body").unbind("mousedown", onBodyDown);
        }
        function onBodyDown(event) {
            if (!(event.target.id == "citySel" || event.target.id == "menuContent" || $(event.target).parents("#menuContent").length>0)) {
                hideMenu();
            }
        }
        function changeDate(){
            var entryDate = $("#entryDate").val();
        	var arr = entryDate.split("-");
        	if(Number(<%=str%>)-Number(arr[0])<0){
        		alert("工作年限小于当前时间");
        		$("#workYears").val("");
        	}else{
        	
        		$("#workYears").val(Number(<%=str%>)-Number(arr[0]));
        	}
        }
        function showOrgTree(){
            treeIsLoad = true;
            var setting = {
                view: {
                    dblClickExpand: false
                },
                data: {
                    simpleData: {
                        enable: true
                    }
                },
                callback: {
                    beforeClick: beforeClick,
                    onClick: onClick
                }
            };
          var zNodes;
          $.ajax({  
                 url : "<%=request.getContextPath()%>/organization/searchAllOrg.action",  
                 type : "post", 
                 dataType : "json",  
                 cache : false,  
                 async:false,
                 error : function(textStatus, errorThrown) {  
                     alert("系统ajax交互错误: " + textStatus.value);  
                 },  
                 success : function(data, textStatus) {
                    zNodes = data;
                 } 
             });
          $.fn.zTree.init($("#treeDemo"), setting, zNodes);
        } 
    </script>
  </head>
   <body class="fontbody">
        <form id="pageFrom"  action=""  method="post"  enctype="MULTIPART/FORM-DATA" >  
        <input type="hidden" name="userId" value="<s:property value="users.userid" />" />
        <div style="overflow-y: scroll;height: 600px">
  		 <table border="0" cellpadding="4" width="600"  cellspacing="1" align="center">    
                    <tr>
                        <td width="145"   class="td_label" >
                            <label for="loginname">用&nbsp;户&nbsp;&nbsp;名：</label>
                        </td>
                        <td width="327" class="td_value" >
                            &nbsp;<input type="text" id="loginname" name="loginname" readonly="readonly" style="width: 250px;" value="<s:property value='users.loginname'/>" onkeydown="if(event.keyCode==8)return false;" /> 
                            <!-- <img src="<%=request.getContextPath() %>/images/xh.png"></img>  -->
                        </td>
                        <td rowspan="4" valign="top" width="271">
	                         &nbsp;<span style="margin-left:70px;">头像</span>
							<div style="width:120px; height:120px; border:1px solid #666; margin-left:30px;">
	                        <img id="idImg" style="width:120px; height:120px;" src="<c:if test='${users.imgAddress==null }'><%=request.getContextPath() %>/images/insertpicture.png</c:if>
	                           <c:if test='${users.imgAddress!=null }'><%=request.getContextPath()%>/printImage.action?path=${users.imgAddress}</c:if>"/>
	                        </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            <label for="username">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：</label>
                        </td>
                        <td class="td_value">
                            &nbsp;<input type="text" id="username" name="username" style="width: 250px;" value="<s:property value='users.username'/>" /> 
                            <img src="<%=request.getContextPath() %>/images/xh.png"></img>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            <label for="username">性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别：</label>
                        </td>
                        <td class="td_value">
                            &nbsp;<select  name="sex" id="sex" style="width: 255px;">
                                <s:property value='users.sex'/>
                                <option value="1" <s:if test="users.sex==1">selected</s:if>>男</option>
                                <option value="0" <s:if test="users.sex==0">selected</s:if>>女</option>                  
                           </select>   
                        </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            <label for="fixedPhone">单位电话：</label> 
                        </td>
                        <td class="td_value">
                            &nbsp;<input type="text" id="companyTel" name="companyTel" style="width: 250px;" value="<s:property value='users.companyTel' />" />
                        </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            <label for="fixedPhone">家庭电话：</label> 
                        </td>
                        <td class="td_value">
                            &nbsp;<input type="text" id="fixedPhone" name="fixedPhone" style="width: 250px;" value="<s:property value='users.fixedPhone' />" />
                        </td>
                        <td class="td_value"><input id="idFile" name="uploadImg" type="file" style="width: 120px;"/></td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            <label for="mobile">移动电话：</label>
                        </td>
                        <td class="td_value">
                            &nbsp;<input type="text" id="mobile" name="mobile" style="width: 250px;" value="<s:property value='users.mobile'/>" />
                        </td>
                        <td rowspan="4" valign="top"  width="271">
                          &nbsp;<span style="margin-left:70px;">签名</span>
						<div style="width:120px; height:120px; border:1px solid #666; margin-left:30px;">
                        <img id="signImg" style="width:120px; height:120px;" src="<c:if test='${users.signAddress==null }'><%=request.getContextPath() %>/images/insertpicture.png</c:if>
                           <c:if test='${users.signAddress!=null }'><%=request.getContextPath()%>/printImage.action?path=${users.signAddress}</c:if>"/>                    
                       	</div>
                           </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            电子邮件：
                        </td>
                        <td class="td_value">
                            &nbsp;<input type="text" id="email" name="email" style="width: 250px;" value="<s:property value='users.email'/>"  />
                        </td>
                    </tr>
                    <tr>
                        <td class="td_label">
                            办公地址：
                        </td>
                        <td class="td_value">
                            &nbsp;<input type="text" id="address" name="address" style="width: 250px;" value="<s:property value='users.address'/>"  />
                        </td>
                    </tr>
                   
                     <tr>
                        <td class="td_label">
                           <label for="activeLabel">用户状态：</label>  
                        </td>
                        <td colspan="2" class="td_value">
                               &nbsp;<select  name="active" id="active" style="width: 255px;">
                                <s:property value='users.active'/>
                                <option value="1" <s:if test="users.active==1">selected</s:if>>有效</option>
                                <option value="0" <s:if test="users.active==0">selected</s:if>>外出试验</option>                  
                                </select>  
                                <img src="<%=request.getContextPath() %>/images/xh.png"></img>
                        </td>
                    </tr> 
                    <tr>
                        <td class="td_label">
                            所属角色：
                        </td>
                        <td class="td_value">
                            <input type="hidden" id="roleIdStr" name="roleIdStr" value="<s:property value='users.roleIdStr'/>"/>
                            &nbsp;<input type="text" id="rolename" name="rolename"  style="width: 250px;" value="<s:property value='users.roleNameStr'/>" onclick="selectRole();"/>
                            <!-- <img src="<%=request.getContextPath() %>/images/xh.png"></img> -->
                            <!--  <img src="/commission/images/accessories-magnifier.png" style="cursor: hand;vertical-align: middle;" onclick="selectRole();"></img> -->
                        </td>
                         <td class="td_value"><input id="signFile" name="uploadSign" type="file" style="width: 120px;"/></td>
                    </tr>
                                 
                    
                     <tr>
                        <td class="td_label">
                            所属组织：
                        </td>
                        <td class="td_value">
                           <input type="hidden" id="orgId" name="orgId"  value="<s:property value='users.organization.orgId'/>"/>
                           &nbsp;<input id="citySel" name="orgNameLabel" type="text"  value="<s:property value='users.orgNameLabel'/>" readonly style="width:250px;" onclick="showMenu();" />
                            <div id="menuContent" class="menuContent" style="display:none; position: absolute;background-color:#fff;">
                                  <ul id="treeDemo" class="ztree" style="margin-top:0; width:244px; height: 240px;"></ul>
                           </div> 
                           <img src="<%=request.getContextPath() %>/images/xh.png"></img>
                        </td>
                    </tr>
                    <tr>
					<td class="td_label">
						<label for="jobName">
					     岗位名称：
						</label>
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type="text" id="jobName" name="jobName" style="width: 250px;" value="<s:property value='users.jobName'/>"  />
					</td>
				</tr>
				<tr>
					<td class="td_label">
						入职时间：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type='text' name='entryDate' id='entryDate'  value="<s:property value='users.entryDate'/>" class='Wdate' onClick='WdatePicker();' style="width:250px;"  onchange="changeDate();" ></input>
					</td>
				</tr>
				<tr>
					<td class="td_label">
						工作年限：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type="text" id="workYears" name="workYears" style="width:250px;" readonly="readonly" value="<s:property value='users.workYears'/>"/>
					</td>
				</tr>
				
				<tr>
					<td class="td_label">
						所学专业：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type="text" id="yourMajor" name="yourMajor" style="width: 250px;" value="<s:property value='users.yourMajor'/>"/>
					</td>
				</tr>
				<tr>
					<td class="td_label">
						年龄：
					</td>
					<td colspan="2" class="td_value">
						&nbsp;<input type="text" id="age" name="age" style="width: 250px;" value="<s:property value='users.age'/>"/>
					</td>
				</tr>
				<tr>
					<td class="td_label">
						学历：
					</td>
					<td colspan="2" class="td_value"><input type="hidden" id="xueliid" name="xueliid"/>
						&nbsp;<input type="text" id="xueliname" name="xueliname" style="width: 250px;" readonly="readonly" value="<s:property value='users.xueliname'/>"/>
						<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseData('KL_XUELI','ID,XUELINAME','主键,学历','学历','XUELINAME','xueli');" title="选择" style="cursor:hand;" />
		    
					</td>
				</tr>
				<tr>
					<td class="td_label">
						职务：
					</td>
					<td colspan="2" class="td_value"><input type="hidden" id="zhiwuid" name="zhiwuid"/>
						&nbsp;<input type="text" id="zhiwuname" name="zhiwuname" style="width: 250px;" readonly="readonly" value="<s:property value='users.zhiwuname'/>"/>
						<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseData('KL_ZHIWU','ID,ZHIWUMC','主键,职务','职务','ZHIWUMC','zhiwu');" title="选择" style="cursor:hand;" />
		    
					</td>
				</tr>
				<tr>
					<td class="td_label">
						职称：
					</td>
					<td colspan="2" class="td_value"><input type="hidden" id="zhichengid" name="zhichengid"/>
						&nbsp;<input type="text" id="zhichengname" name="zhichengname" style="width: 250px;" readonly="readonly" value="<s:property value='users.zhichengname'/>"/>
						<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseData('KL_ZHICHENG','ID,ZHICHENGMC','主键,职称','职称','ZHICHENGMC','zhicheng');" title="选择" style="cursor:hand;" />
		    
					</td>
				</tr>
				<tr>
					<td class="td_label">
						涉密等级：
					</td>
					<td colspan="2" class="td_value"><input type="hidden" id="shemidjid" name="shemidjid"/>
						&nbsp;<input type="text" id="shemidjname" name="shemidjname" style="width: 250px;" readonly="readonly" value="<s:property value='users.shemidjname'/>"/>
						<img src="<%=request.getContextPath() %>/web/images/form_icon_1.gif" width="23" height="23" border="0" onclick="chooseData('KL_SHEMIDJ','ID,SHEMIDJMC','主键,涉密等级','涉密等级','SHEMIDJMC','shemidj');" title="选择" style="cursor:hand;" />
		    
					</td>
				</tr>
 
                   <tr>
                       <td class="td_label">
                                用户描述：
                       </td>
                       <td colspan="2" >
                             &nbsp;<textarea rows="8" cols="34"  id="userdesc" name="userdesc" onkeydown="countlen(this);"><s:property value='users.userdesc'/></textarea>      
                       </td>
                   </tr>
                    <tr>
                         <td colspan="3" style="text-align:center;height:20px;font-size:15px;font-weight:bold;">
                            <input id="submitBtn" type="button" class="button_b"  value="保存" />
                            <input id="cancelBtn" type="button" class="button_b" value="取消 " />
                        </td>
                    </tr>
                </table>  
              </div>
			                     
        </form>
    </body>
</html>
